package com.stefanie.study.afp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author: stefanie-zy
 * @time: 2024/6/28-13:51
 * @description: 抽象工厂-具体工厂A
 */
@Slf4j
@Service
public class ConcreteFactoryA implements AbstractFactory {

    @Override
    public AbstractProductA createProductA() {
        log.info("具体工厂A创建...具体产品A");
        return new ConcreteProductA();
    }

    @Override
    public AbstractProductB createProductB() {
        log.info("具体工厂A创建...具体产品B");
        return new ConcreteProductB();
    }
}
